<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>装修审办高级查询</title>
<link href="${ctx}/css/grid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript">

	function submitSearch(){ //查询

		var isTrue=$("renRequisitionSearchForm").fireEvent("onSubmit");

  		if(isTrue){
			var params = $("renRequisitionSearchForm").serialize();
			var url = "${ctx}/renovation_renovateRequisitionAction.do?method=setRenReqSearchCondition";
			sendAjaxRequest(url,params,function(){
				findFrame('main').cur_p = 1;
				findFrame("main").refleshRenReqFrame(); ////刷新主页面装修申办分帧页
				windowClose();
			});
		}
	}

	function openHouseSelect(){ //打开选房间的页面
		var ownerUrl = "${ctx}/customer_chooseSingleHouseAction.do?method=chooseBuildingMain";
		ownerUrl += "&parentFrameId=renRequisitionSearchIfm";
		top.windowOpen(ownerUrl , "chooseBuildFrm", "选择房间",500,800);
	}
	function setHouseInfo(houseId,houseNum){	//设置房号
		document.getElementById("houseNumber").value = houseNum;
	}
</script>
</head>

<body>
<form  name="renRequisitionSearchForm" id="renRequisitionSearchForm" method="post" action=""  class="required-validate">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="${ctx}/images/ico_Advance.gif" width="16" height="16" align="absmiddle" /> <span class="window_head_intext">高级查询</span></td>
        </tr>
    </table></td>
  </tr>
  <tr><td class="aux_header_line_1"></td></tr>
  <tr><td class="aux_header_line_2"></td></tr>
  <tr>
    <td class="content"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="aux_outtable_color">
        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">

          <tr>
            <td class="aux_intable_td1">楼 栋：</td>
            <td class="aux_intable_td2">
             	<pms:unitedSelect
               		id="buildingId"
               		name="buildingId"
               		optionLabel="name"
               		optionValue="keyword"
               		selectText="请选择..."
               		dataList="${buildingList}"
               		style="width:90px;">
	         </pms:unitedSelect>
            </td>
          </tr>
          <tr>
            <td class="aux_intable_td1">房 号：</td>
            <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><input name="houseNumber" id="houseNumber" type="text" class="inputtext" size="16" /></td>
                  <td width="4">&nbsp;</td>
                  <td><a href="#"  onClick="openHouseSelect();"onFocus="this.blur()"><img src="${ctx}/images/ico_houesno.GIF" alt="请点选查找房号" border="0" /></a></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">业主姓名：</td>
            <td class="aux_intable_td2"><input name="clientNames" id="clientNames" type="text" class="inputtext" value="" size="16" /></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">装修申请单号：</td>
            <td class="aux_intable_td2"><input name="requisitionNumber" id="requisitionNumber" type="text" class="inputtext" value="" size="16" /></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">审批状态：</td>
            <td class="aux_intable_td2">
              <pms:unitedSelect
               		id="requisitionState"
               		name="requisitionState"
               		optionLabel="name"
               		optionValue="value"
               		selectText="请选择..."
               		dataList="${requisitionStates}"
               		style="width:90px;">
	         </pms:unitedSelect>
	       </td>
          </tr>
          <tr>
            <td class="aux_intable_td1">记录人：</td>
            <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="creatorName" type="text" id="creatorName" class="inputtext" value="" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td><!--<a href="#"  onClick="window.showModalDialog('../join/aux_owner_xr.htm',window,'dialogWidth:700px;dialogHeight:530px;help:no;status:no;scroll:no;certer');"onFocus="this.blur()"><img src="${ctx}/images/ico_cz.gif" width="16" height="16" border="0" /></a>--></td>
              </tr>
            </table></td>
          </tr>
		  <tr>
            <td class="aux_intable_td1">费用状态：</td>
            <td class="aux_intable_td2">
               <pms:unitedSelect
               		id="chargeState"
               		name="chargeState"
               		optionLabel="name"
               		optionValue="value"
               		selectText="请选择..."
               		dataList="${chargeStates}"
               		style="width:90px;">
	         </pms:unitedSelect>
	         </td>
          </tr>
		  <tr>
            <td class="aux_intable_td1">许可证状态：</td>
            <td class="aux_intable_td2">
               <pms:unitedSelect
               		id="licenceState"
               		name="licenceState"
               		optionLabel="name"
               		optionValue="value"
               		selectText="请选择..."
               		dataList="${licenceStates}"
               		style="width:90px;">
	         </pms:unitedSelect>
	      </td>
          </tr>
          <tr>
            <td class="aux_intable_td1">记录时间：</td>
            <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;从&nbsp;</td>
                <td><input name="annalBegin" id="annalBegin" type="text" class="validate-date " value="" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td width="4"><img id="imgAnnalBegin" src="${ctx}/images/ico_clock.gif" width="20" height="20" /></td>
                <td class="btn_between_four">&nbsp;至&nbsp;</td>
                <td><input name="annalEnd" id="annalEnd" type="text" class="validate-date " value="" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td><img id="imgAnnalEnd" src="${ctx}/images/ico_clock.gif" width="20" height="20" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">装修申请日期：</td>
            <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;从&nbsp;</td>
                <td><input name="requisitionBegin" id="requisitionBegin" type="text" class="validate-date " value="" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td width="4"><img id="imgRequisitionBegin" src="${ctx}/images/ico_clock.gif" width="20" height="20" /></td>
                <td class="btn_between_four">&nbsp;至&nbsp;</td>
                <td><input name="requisitionEnd" id="requisitionEnd" type="text" class="validate-date " value="" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td><img id="imgRequisitionEnd" src="${ctx}/images/ico_clock.gif" width="20" height="20" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">装修施工期限：</td>
            <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;从&nbsp;</td>
                <td><input name="renovateBegin" id="renovateBegin" type="text" class="validate-date " value="" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td width="4"><img id="imgRenovateBegin" src="${ctx}/images/ico_clock.gif" width="20" height="20" /></td>
                <td class="btn_between_four">&nbsp;至&nbsp;</td>
                <td><input name="renovateEnd" id="renovateEnd" type="text" class="validate-date " value="" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td><img id="imgRenovateEnd" src="${ctx}/images/ico_clock.gif" width="20" height="20" /></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td class="buttonOffLeft" id="btn1_21"></td>
            <td class="buttonOffMiddle" id="btn1_22"  onClick="submitSearch();"  onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onBlur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 确 定</td>
            <td class="buttonOffRight" id="btn1_23"></td>
          </tr>
        </table></td>
        <td width="4"></td>
        <td><table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td class="buttonOffLeft" id="btn1_21"></td>
            <td class="buttonOffMiddle" id="btn1_22" onClick="windowClose();" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onBlur="btn_change(2)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 取 消</td>
            <td class="buttonOffRight" id="btn1_23"></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>

<script type="text/javascript">
             Calendar.setup(
              {
	              inputField : "annalBegin", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgAnnalBegin", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              Calendar.setup(
              {
	              inputField : "annalEnd", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgAnnalEnd", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );


              Calendar.setup(
              {
	              inputField : "requisitionBegin", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgRequisitionBegin", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
               Calendar.setup(
              {
	              inputField : "requisitionEnd", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgRequisitionEnd", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );


                Calendar.setup(
              {
	              inputField : "renovateBegin", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgRenovateBegin", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
               Calendar.setup(
              {
	              inputField : "renovateEnd", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgRenovateEnd", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );


</script>
</body>
</html>